package com.tensquare.rabbitmq.customer;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * 直接模式消费方
 *
 * @author 11752
 */
// @Component
@RabbitListener(queues = "test")
public class DirectCustomer {

    @RabbitHandler
    public void getMsg(String msg) {
        System.out.println("直接模式消费消息：" + msg);
    }

}
